pull: End status line on error as well
authorColin Walters <walters@verbum.org>
Mon, 17 Mar 2014 23:39:59 +0000 (19:39 -0400)
committerColin Walters <walters@verbum.org>
Wed, 19 Mar 2014 13:49:55 +0000 (09:49 -0400)
This way we don't append the error to the current line.

src/ostree/ot-builtin-pull.c

index 6d8ffc905b92f3c3c603697fff45860406ac0736..b7e4ca4041e7fc2b1be0987828a292c502c37406 100644 (file)
@@ -89,11 +89,11 @@ ostree_builtin_pull (int argc, char **argv, OstreeRepo *repo, GCancellable *canc
                          pullflags, progress, cancellable, error))
     goto out;
 
+  ret = TRUE;
+ out:
   if (console)
     gs_console_end_status_line (console, NULL, NULL);
  
-  ret = TRUE;
- out:
   if (context)
     g_option_context_free (context);
   return ret;